package com.ossjk.core.util;

import org.springframework.stereotype.Component;

/**
 * 常量类
 * 
 * @Author Chair
 * @Version 1.0, 2018年9月23日
 * @See
 * @Since com.jkoss.common.util
 * @Description: TODO
 */
@Component
public class Constant {
	/**
	 * 系统属性key
	 */
	public static final String APPLICATION_ATTRIBUTE_KEY = "attribute";
	/**
	 * 默认密码
	 */
	public static final String SYSTEM_DEFAUL_PWD = "OSSJK2017";

	/**
	 * 请求header token key
	 */
	public static final String REQUEST_TOKEN_HEADER = "jwttoken";

	/**
	 * token
	 */
	public static final String REQUEST_TOKEN_KEY = "token";
	/**
	 * userid
	 */
	public static final String REQUEST_USERID_KEY = "userid";

	/**
	 * departmentid
	 */
	public static final String REQUEST_DEPARTMENTID_KEY = "departmentid";
	/**
	 * postid
	 */
	public static final String REQUEST_POSTID_KEY = "postid";
	/**
	 * 成功返回码
	 */
	public static final int RESPONSE_CODE_SUCCESS = 1000;
	/**
	 * 请求失败返回码
	 */
	public static final int RESPONSE_CODE_FAIL = 1001;
	/**
	 * 请求抛出异常返回码
	 */
	public static final int RESPONSE_CODE_EXCEPTION = 1002;
	/**
	 * 未登陆状态返回码
	 */
	public static final int RESPONSE_CODE_NOLOGIN = 1003;
	/**
	 * 无操作权限返回码
	 */
	public static final int RESPONSE_CODE_NOAUTH = 1004;
	/**
	 * userid可能在别的地方登录
	 */
	public static final int RESPONSE_CODE_OTHERLOGIN = 1005;
	/**
	 * 刷新Token
	 */
	public static final int RESPONSE_CODE_REFRESH = 1006;
	/**
	 * 成功返回信息
	 */
	public static final String RESPONSE_MSG_SUCCESS = "操作成功";
	/**
	 * 成功返回信息
	 */
	public static final String RESPONSE_MSG_FAIL = "操作失败";
	/**
	 * 请求抛出异常返回信息
	 */
	public static final String RESPONSE_MSG_EXCEPTION = "请求报错！";
	/**
	 * 未登陆状态返回信息
	 */
	public static final String RESPONSE_MSG_NOLOGIN = "no login!";
	/**
	 * 无操作权限返回信息
	 */
	public static final String RESPONSE_MSG_NOAUTH = "no auth!";
	/**
	 * 刷新Token返回信息
	 */
	public static final String RESPONSE_MSG_REFRESH = "refresh token!";

	/**
	 * Token可能在别的地方登录
	 */
	public static final String RESPONSE_MSG_OTHERLOGIN = "可能在别的地方登录!";
	/**
	 * did
	 */
	public static final String REQUEST_DID_KEY = "did";
	/**
	 * pid
	 */
	public static final String REQUEST_PID_KEY = "pid";

	/**
	 * dsub
	 */
	public static final String REQUEST_DSUB_KEY = "dsub";
	/**
	 * psub
	 */
	public static final String REQUEST_PSUB_KEY = "psub";
	/**
	 * perssion
	 */
	public static final String REQUEST_PERSSION_KEY = "perssion";
}
